﻿using System;
using System.IO;
using OpenLS.Spreadsheet.Formats.Biff.Tokens;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class ObjectParsedFormula : ParsedFormulaBase
    {
        private uint unused;

        public void Read(FormulaReadContext formulaReadContext)
        {
            ushort cce = formulaReadContext.ReadUInt16();
            this.unused = formulaReadContext.ReadUInt32();
            base.Read(formulaReadContext, cce);
        }
        public void Write(FormulaWriteContext formulaWriteContext)
        {
            ushort u = TotalTokenByteLength(formulaWriteContext.Type);
            formulaWriteContext.Writer.Write(u);
            formulaWriteContext.Writer.Write(this.unused);
           throw new NotImplementedException(); 
            WriteNamed(formulaWriteContext);
        }


        protected override Cell GetReferenceCell(Cell cell)
        {
            throw new NotImplementedException();
        }
    }
}